package com.hspedu.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.hspedu.entity.Result;

public class CustomGlobalBlockHandler {
    public static Result handleMethod1(BlockException e){
        return Result.Error("400","客户自定义处理异常/限流方法handleMethod1()");
    }
    public static Result handleMethod2(BlockException e){
        return Result.Error("402","客户自定义处理异常/限流方法handleMethod2()");
    }
}
